package pl.smath.regex.tree.vertexes;

import pl.smath.regex.tree.vertexes.pair.AbsPairVertex;

public class RelationVertex extends AbsPairVertex {

	private String relation;

	public RelationVertex(String relation, Vertex l, Vertex r) {
		super(l,r);
		this.relation = relation;
	}

	public String serialize() {
		return "RELATION['" + relation + "'," + getLeft().serialize() + "," + getRight().serialize() + "]";
	}
	
	public String getRelation() {
		return relation;
	}
}
